﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WPF_DragDrop_UI_Demo
{
    public class MainViewModel
    {
        public ObservableCollection<SensorViewModel> Sensors { get; set; }

        public MainViewModel()
        {
            LoadSensorData();
        }

        private void LoadSensorData()
        {
            Sensors = new ObservableCollection<SensorViewModel>
        {
            new SensorViewModel("温度传感器"),
            new SensorViewModel("湿度传感器"),
        };
        }
    }
}
